using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LvItem : MonoBehaviour
{
    public Text lvText;
    public GameObject enableBox;
    public GameObject disableBox;
    private bool isEnable = false;

    public void SetData(int lv)
    {
        lvText.text = lv.ToString();
        int _level = (int)UserManager.Instance.GetUserInfo()["LimitedLv"];
        if (lv > _level)
        {
            disableBox.SetActive(true);
        }
        else
        {
            enableBox.SetActive(true);
            isEnable = true;
        }
    }

    public void OnLevelClick(int lv)
    {
        if (!isEnable) return;
    }
}
